OBJS=crtsurfdata book book_simple demo.ftp
#开发框架头文件路径
PUBINCL = -I/project/public
#开发框架cpp文件名,这里直接包含进来,没有采用链接库,是为了方便调试
PUBCPP = /project/public/_public.cpp
#编译参数
CFLAGS = -g

all:$(OBJS)

crtsurfdata:crtsurfdata.cpp
	g++ $(CFLAGS) -o $@ $< $(PUBINCL) $(PUBCPP) -lm -lc
	cp crtsurfdata ../bin/.
book:book.cpp
	g++ $(CFLAGS) -o $@ $< $(PUBINCL) $(PUBCPP) -lm -lc
book_simple:book_simple.cpp
	g++ $(CFLAGS) -o $@ $< $(PUBINCL) $(PUBCPP) -lm -lc
demo.ftp:demo.ftp.cpp
	g++ $(CFLAGS) -o $@ $< $(PUBINCL) $(PUBCPP) /project/public/_ftp.cpp -L/project/public -lftp -lm -lc
clean:
	rm crtsurfdata test1
